import { defineStore } from 'pinia'
import { ref } from 'vue'
import {getTableField} from './../requests/request'

export const useTableStore = defineStore('table', () => {
  const fieldsList = ref([])
  function getField(tableName) {
      return getTableField(tableName)
  }

  return { fieldsList, getField }
})